package com.steven.download.utils;

import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;

/**
 * @Des:
 * @Author: hwz
 * @Date:2021/11/11 0011
 * @Version: 1.0
 */
public class UIThreadUtil {
    private static HandlerThread handerThread = null;
    private static Handler uiHandler = new Handler(Looper.getMainLooper());

    public static void runUITask(Runnable runnable) {
        uiHandler.post(runnable);
    }

    public static void runUITaskDelay(Runnable runnable, long delayTime) {
        uiHandler.postDelayed(runnable, delayTime);
    }
}
